home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Netwerk⁄Telecom / HighSpeedModemMusings Folder / HighSpeedModemMusings < prev   
Encoding:
Internet Message Format  |  1994-02-07  |  7.4 KB  |  [TEXT/ERIC]

  1. Date: Tue, 18 Jan 94 13:00:54 EST
  2. From: iedh1@agt.gmeds.com ( Daniel J. Hofferth (317) 230-4791 AGT/8896)
  3. Subject: High Speed Modem Musings
  4.  
  5.  
  6. Hi all,
  7.  
  8. I've now spent a month or so with a new V.32bis (14.4KB) modem that gave
  9. me a variety of little fits until I finally got everything running just
  10. right. I was upgrading from a 2400 baud modem, and I was mentally unpre-
  11. pared for the many complications introduced by the much higher speeds.  
  12. The new modems are NOT always plug-n-play replacements for older models.
  13.  
  14. While quietly researching solutions, I've noticed quite a few postings in
  15. different lists/digests (such as this one) from people who are suffering 
  16. from problems similar to those I have puzzled over.  In the hope of help-
  17. ing someone else, I am posting the problems I had (that I've now learned
  18. are fairly common) and solutions that worked for me.
  19.  
  20.  <After a whole month I should be an expert, eh?  I'm a neophyte, I'm 
  21.   the first to admit it.  I've been a professional computer nerd for many
  22.   years, but I know almost zip about high speed modems (as I shamelessly 
  23.   prove below).  Please feel free to comment, clarify, etc...>
  24.  
  25. Think these are FAQ's?  Maybe so, but I couldn't find answers in any one
  26. place.  Interesting thing is, these seem like perfectly natural problems
  27. waiting for unsuspecting slow modem users who are about to move up.
  28.  
  29. All problems posted below are related to high-speed (HS) communications,
  30. and they occurred while using both CTB and non-CTB applications (Apple's
  31. Communications Tool Box):
  32.  
  33. 1) Trouble establishing a connection.
  34.  
  35.    I had my modem attached to the wall jack via a long (50 feet) ribbon
  36.    style phone cable... the kind where the wires run parallel to each-
  37.    other in a semi-clear casing <what's the official name?>.  To make
  38.    matters worse, it ran in long straight lengths (around an intermediate
  39.    room), and then into a tangle of power cords for the computer.
  40.  
  41.    It was a great antenna, but a lousy HS modem extension.  It worked just
  42.    fine for the 2400 baud modem, mind you.  Went to Radio Shack and picked 
  43.    up "twisted pair" phone cable (cheap).  Then rerouted it away from the 
  44.    power cords.  Bingo - connections made.
  45.  
  46.    I understand there is also a "high-twist" wire available for data-
  47.    grade communications.  What I bought worked fine for me... my house
  48.    uses the standard twist in the walls... I didn't see any sense in 
  49.    going to data grade for just this one length.  They also sell line
  50.    filters to weed out noise - didn't need that either.
  51.  
  52.  
  53. 2) I could now connect at HS with error correction and flow control,
  54.    and work the user-interface without apparent trouble, but file
  55.    transfers kept causing my modem to hang-up abruptly.
  56.  
  57.    The Mac's serial port issues the hardware-handshaking (HH) signal on a
  58.    pin that HH-cables also carry to DTR on the modem.  My modem was set
  59.    to hang-up on loss of DTR (AT &D2), when it should have been told to
  60.    ignore DTR (AT &D0).  No more unexpected hang-ups.  For the older 
  61.    modem, this was not an issue - it used Xon/Xoff handshaking.
  62.  
  63.  
  64. 3) No more hang-ups, but high speed uploads and downloads were full of 
  65.    packet-errors.  Effective throughput was only about 700-800 cps.
  66.  
  67.    I knew that I had a HH-cable, software that had HH support enabled, 
  68.    and a modem-to-modem connection that was error correcting and flow 
  69.    controlled.  But I was still getting sporadic packet errors on 
  70.    file transfers.  Clearly HH wasn't working.
  71.  
  72.    I got out my multi-meter and tested the cable supplied by the modem
  73.    manufacturer.  It WAS a HH-cable, but not wired as suggested by 
  74.    Apple... I'm no EE, but it seemed worth swapping out to me.  At my
  75.    local computer store I bought another HH-cable (after being assured
  76.    that I could return it if it didn't work), brought it home and tested
  77.    it with the meter.  This one was almost identical to Apple's version
  78.    except that pin-7 (GPi) on the Mac side wasn't connected.  As I 
  79.    gather from other readings, GPi is a special purpose pin that isn't 
  80.    used by simple home connectors like me.  I tried the new cable, and
  81.    file transfers were MUCH cleaner, but still not perfect.
  82.  
  83.    <Clearly not all HH-cables are appropriate for all machines.  Just 
  84.     because your modem manufacturer supplied a cable for you, don't 
  85.     assume it is correct for your Mac.  BTW, there are a few Macs that
  86.     don't support HH... Mac Classic is one, I forget the others....>
  87.  
  88.  
  89. 4) File transfers still suffered from packet errors if I switched to 
  90.    another application, or simply held the mouse button down on a menu.
  91.    Otherwise, they were going O.K.  What now?!
  92.  
  93.    Apple claims the priorities for a variety of system related tasks can
  94.    cause the Mac to miss incoming information.  They suggest the following
  95.    guidelines for improving the CPU's attention to the serial port:
  96.  
  97.       - Limit your Mac-to-modem connection to 19.2KB.
  98.  
  99.         While the new modems can theoretically achieve throughput of up
  100.         to 56KB, this is almost NEVER really done.  Text file transfers
  101.         can reach 3500 cps (or so), but most file transfering that we do
  102.         is on already compressed files.  Throughput for these is much
  103.         closer to the modem-to-modem implied speed of 1440 cps.  Thus,
  104.         19.2KB is fast enough for general use.  38.4KB may be safe if 
  105.         you Mac is fast enough (mine isn't).
  106.  
  107.       - Don't use 24-bit mode, stick to 32-bit addressing.
  108.  
  109.         24-bit addressing mode apparently peppers the CPU with extra
  110.         interrupts that clouds its ability to watch over the serial port
  111.         flow control... possibly resulting in missed characters.
  112.  
  113.       - Don't use virtual memory.
  114.  
  115.         Same reasoning as above.  The overhead required to manage the
  116.         virtual memory impares the systems ability to keep up with the
  117.         flood of serial port data.
  118.  
  119.     I was already at 19.2KB between my Mac and modem (having already 
  120.     learned that 38.4KB greatly increased my problems), but I was still 
  121.     in 24-bit mode with virtual memory on.  I've been pretty religious 
  122.     about collecting only 32-bit clean software, and I've got enough real
  123.     RAM to turn VM off without problems, so following these guidelines 
  124.     was painless for me.
  125.  
  126.     And they worked.
  127.  
  128. I now have rock-solid high speed connections on a slow Mac, and file 
  129. transfers that are robust enough to let me switch between applications 
  130. without packet errors.  
  131.  
  132. By the way, to those of you who wonder about file transfers that abort 
  133. when you try to launch a big application, or impose some other long 
  134. pause...  To me this doesn't necessarily imply a handshaking error, 
  135. perhaps the computer you were connected to decided it had waited long 
  136. enough and simply timed-out?  Short pauses should certainly be handled 
  137. without errors, but the longer you go - the more likely it is that the 
  138. host gave up.  No?
  139.  
  140. I read one interesting comment from a modem manufacturer... They noted
  141. that Apple's serial port buffer is painfully small, making the timing
  142. on handshaking a critical and touchy issue.  They noted that as modem
  143. speeds have increased, fortunately so have Mac speeds - thus somewhat 
  144. compensating.  Apparently, we slow Mac owners seem to be in the yellow
  145. zone in the war between CPU horsepower and modem data flow.  It doesn't
  146. take much to tip the battle one way or the other.
  147.  
  148. Sorry for the length of this, but I hope it helps someone else.
  149.  
  150.    <Mac Classic II, System 7.1, HSU 2.0.1, 4/40+120, Zoom VFX V.32bis>
  151.  
  152. Dan Hofferth
  153. iedh1@agt.gmeds.com
  154.  
  155.  
  156.